import { get, post,deleteFun} from "../api"
//活动详情
export const getTenantActivityInfo = (params) => get('/bmj-api/api/tenant/activity/getActivityInfo', params)
  
//参加活动
export const joinActivity = (params) => post('/bmj-api/api/tenant/activity/joinActivity', params)

//创建活动
export const createActivity = (params) => post('/bmj-api/api/tenant/activity/createActivity', params)

//参加活动列表
export const joinActivityList = (params) => get('/bmj-api/api/tenant/activity/joinActivityList', params)

//创建活动列表
export const startActivityList = (params) => get('/bmj-api/api/tenant/activity/startActivityList', params)

//活动人员详情
export const activityPersonnelInfo = (params) => get('/bmj-api/api/tenant/activity/activityPersonnelInfo', params)

//生成活动二维码
export const generateQRCode = (params) => get('/bmj-api/api/tenant/activity/generateQRCode', params)

//获取小程序链接
export const generateUrlLink = (params) => post('/bmj-wechat/weChat/weChatApplets/generateUrlLink', params)

//删除活动
export const deleteActivity = (id) => deleteFun(`/bmj-api/api/tenant/activity/deleteActivity?id=${id}`)

//修改活动
export const updateActivity = (params) => post('/bmj-api/api/tenant/activity/updateActivity', params)

